Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for setting traffic class on outgoing packets #120

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

ethuleau
Copy link
Contributor

@ethuleau ethuleau commented Sep 2, 2024

For networks where traffic can be classified, it is useful to define different probe priorities to test the network and validate that QoS configuration.

The patch also set probe service class to Network Control (CS6) by default.

Fix #41

@SuperQ
Copy link
Contributor

SuperQ commented Oct 31, 2024

This needs a rebase.

For networks where traffic can be classified, it is useful to define
different probe priorities to test the network and validate that QoS
configuration.

The patch also set probe service class to `Network Control` (CS6) by
default.

Fix prometheus-community#41

Signed-off-by: Édouard Thuleau <[email protected]>
@ethuleau
Copy link
Contributor Author

This needs a rebase.

done @SuperQ

@@ -46,9 +45,13 @@ func main() {
size := flag.Int("s", 24, "")
ttl := flag.Int("l", 64, "TTL")
iface := flag.String("I", "", "interface name")
tclass := flag.Int("Q", 192, "Set Quality of Service related bits in ICMP datagrams (DSCP + ECN bits). Only decimal number supported")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if it would be better to make this a String() so we can parse both decimal and hex values like iputils does.

@SuperQ
Copy link
Contributor

SuperQ commented Nov 22, 2024

I guess we can improve on this later to support hex input.

@SuperQ SuperQ merged commit 543f9b2 into prometheus-community:main Nov 22, 2024
5 checks passed
@ethuleau
Copy link
Contributor Author

I guess we can improve on this later to support hex input.

yes sorry I did not managed to get time work on this. I'm adding it to my todo list. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support add tos
3 participants